@extends('layouts.app')

@section('banner')
    @include('layouts._banner')
@stop

@section('content')
    <!--推荐新闻-->
    <div class="newsbox">
        <h5>推荐咨询<a href="/news/{{ $newsSort['recommend'] }}/sort">更多</a></h5>
        <ul>
            @foreach($recommend as $value)
                <a href="/news/{{ $value->id }}">
                    <li>
                        <img src="{{ $value->image }}">
                        <div class="text">
                            <h6>{{ $value->title }}</h6>
                            <div>
                                {!! $value->content !!}
                            </div>
                        </div>
                    </li>
                </a>
            @endforeach
        </ul>
    </div>
    <!--新闻推荐-->

    <!--新闻推荐分类-->
    <div class="fenliebox">

        <div class="newsbox">
            <h5>排行咨询<a href="/news/{{ $newsSort['rankings'] }}/sort">更多</a></h5>
            <ul>
                @foreach($rankings as $value)
                    <a href="/news/{{ $value->id }}">
                        <li>
                            <img src="{{ $value->image }}">
                            <div class="text">
                                <h6>{{ $value->title }}</h6>
                                <div>
                                    {!! $value->content !!}
                                </div>
                            </div>
                        </li>
                    </a>
                @endforeach
            </ul>
        </div>

        <div class="newsbox">
            <h5>热搜咨询<a href="/news/{{ $newsSort['hotSearch'] }}/sort">更多</a></h5>
            <ul>
                @foreach($hotSearch as $value)
                    <a href="/news/{{ $value->id }}">
                        <li>
                            <img src="{{ $value->image }}">
                            <div class="text">
                                <h6>{{ $value->title }}</h6>
                                <div>
                                    {!! $value->content !!}
                                </div>
                            </div>
                        </li>
                    </a>
                @endforeach
            </ul>
        </div>

        <div class="newsbox">
            <h5>图文咨询<a href="/news/{{ $newsSort['imageText'] }}/sort">更多</a></h5>
            <ul>
                @foreach($imageText as $value)
                    <a href="/news/{{ $value->id }}">
                        <li>
                            <img src="{{ $value->image }}">
                            <div class="text">
                                <h6>{{ $value->title }}</h6>
                                <div>
                                    {!! $value->content !!}
                                </div>
                            </div>
                        </li>
                    </a>
                @endforeach
            </ul>
        </div>
    </div>
    <!--新闻推荐结束-->


    <!--菜单展示-->
    <div class="caidianhasn">
        <h1>桥梁</h1>
        <ul>
            @foreach($bridge as $value)
                <a href="/news/{{ $value->id }}"><li><p>{{ $value->title }} </p></li></a>
            @endforeach
        </ul>
    </div>
    <!--菜单展示结束-->
@stop

@section('footer')
    @include('layouts._footer')
@stop
